package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CallDispatchRule implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long driverRegionId;
    //派单触发距离,单位:公里
    private BigDecimal triggerDistance;
    //权重配置 json
    private String weightSpec;
    //是否可用
    private Boolean isActive;

    private Date createdAt;

    private Date updatedAt;


    //派单距离上限
    private BigDecimal dispatchDistanceMax;
}
